﻿import com.dmotiko.mirador.*
import com.dmotiko.general.*
import mx.utils.Delegate;

class MiradorBtn
extends ButtonClip {
	
	private var mcLabel:MovieClip;
	private var mcBack:MovieClip;
	
	private function initClip() {
		this.gotoAndStop("normalEnd");
		this.useHandCursor = true;
	}
		
	public function onRollOver() {
		if( !bActive ){
			mcLabel.gotoAndPlay("over");
			mcBack.gotoAndPlay("over");
		}
		this.dispatchEvent( { type: BaseClipEvent.CHANGED, target: this, description: "rollOver" } );
	}
	public function onRollOut() {
		if (bActive) {
			mcBack.gotoAndPlay("down");
			return;
		}
		mcLabel.gotoAndPlay("normal");
		mcBack.gotoAndPlay("normal");
	}
		
}